package com.zdsoft.finance.busiform.repository;

import com.zdsoft.finance.busiform.entity.BusiForm;
import com.zdsoft.finance.common.base.CustomRepository;

/**
 * 审批单操作仓库
 * 
 * @author liuwei
 * @date 2016/10/12
 * @version 1.0
 */
public interface BusiFormRepository extends CustomRepository<BusiForm, String> {

	/**
	 * 根据审批单包查询审批单
	 * 
	 * @param busiFormNo
	 *            审批单编号
	 * @return 审批单
	 */
	BusiForm findByBusiFormNo(String busiFormNo);

	/**
	 * 根据关联业务表单id查找审批单
	 * 
	 * @param businessId
	 *            关联业务表单id
	 * @param businessType
	 *            关联业务表单类型
	 * @return 审批单
	 */
	BusiForm findByBusinessIdAndBusinessType(String businessId, String businessType);
	
	

}
